package entity

import ()

type UserSetting struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	UserId int64 `gorm:"column:user_id;type:BIGINT" json:"user_id"`

	Face int `gorm:"column:face;type:TINYINT" json:"face"`

	Fingerprint int `gorm:"column:fingerprint;type:TINYINT" json:"fingerprint"`

	Vibration int `gorm:"column:vibration;type:TINYINT" json:"vibration"`

	CutPower int `gorm:"column:cut_power;type:TINYINT" json:"cut_power"`

	ChargeMonitor int `gorm:"column:charge_monitor;type:TINYINT" json:"charge_monitor"`

	GuardAlarm int `gorm:"column:guard_alarm;type:TINYINT" json:"guard_alarm"`

	FaultAlarm int `gorm:"column:fault_alarm;type:TINYINT" json:"fault_alarm"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *UserSetting) TableName() string {
	return "user_settings"
}
